<!DOCTYPE html>
<html>
  <head><meta charset="utf-8"></head>
  <body>
    <div><a href="index.html">Back</a></div>
    <h1>DOM manipulation</h1>
    <button id="button">Click me!</button>
    <h2 id="container"></h2>
    <script type="text/ruby">
      require 'js'
      JS.document.getElementById('button').addEventListener('click') do |event|
        event.preventDefault
        event.target.innerText = 'Clicked!'
        JS.document.getElementById('container').innerText = 'Hello, PicoRuby!'
      end
    </script>
    <script src="init.iife.js"></script>
  </body>
</html>

